package com.theaf.core.service;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Map;

/**
 * @Author:songwenke
 * @Description:日志封装
 * @Date:create in 15:36 2018/3/26
 * @Modified By:
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Log {
    //动作
    private String action;
    //系统标识
    private String appCode;
    //请求路径
    private String url;
    //异常内容
    private String errContent;
    //操作人ID
    private Long opeId;
    //操作人名
    private String opeName;
    //请求时间
    private Date reqTime;
    //用时（毫秒）
    private Integer useTs;
    //操作ip
    private String opeIp;
    //操作终端
    private String opeTer;
    //操作类型
    private Integer operType;
    public static int OPERTYPE_LOGIN = 1;
    public static int OPERTYPE_LOGOUT = 2;
    public static int OPERTYPE_OPER = 3;
    //数据
    private Map<Long,String> datas;
}
